package com.fileshare.web.service;

import com.fileshare.web.dto.Bo.ArticleBo;
import com.fileshare.web.dto.Vo.ArticleVo;
import com.fileshare.web.entity.Label;
import com.fileshare.web.exception.FsRuntimeException;
import com.github.pagehelper.PageInfo;
import org.springframework.security.access.AccessDeniedException;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ArticleService {
    List<ArticleVo> getAll();

    PageInfo<ArticleVo> getArticles(int p, int limit);

    ArticleVo getArticle(String articleSeq) throws AccessDeniedException, FsRuntimeException;

    ArticleVo createArticle(HttpServletRequest request, ArticleBo articleBo);

    PageInfo<ArticleVo> getArticlesByCategoryName(String categoryName);

    List<Label> getLabels(String articleSeq);
}
